const http = uni.$u.http;

//  创建订单 /api
export const apiCreateOrder = (params = {}) => http.post('/stb.order/createOrder', params)

//  订单支付参数 /api
export const apiOrderPayment = (params = {}) => http.post('/stb.order/orderPayment', params)

//  订单列表 /api
export const apiOrderList = (params = {}) => http.post('/stb.order/orderList', params)

// 删除订单 /api
export const apiDelOrder = (params = {}) => http.post('/stb.order/delOrder', params)

// 获取省市区列表 /api
export const apiAreaList = (data) => http.get('/stb.order/areaList', data)

// 收获地址列表 /api
export const apiAddressList = (data) => http.get('/stb.order/addressList', data)

// 添加地址 /api
export const apiAddAddress = (params = {}) => http.post('/stb.order/addAddress', params)

// 地址详情 /api
export const apiAddressDetail = (data) => http.get('/stb.order/addressDetail', data)

// 编辑地址 /api
export const apiEditAddress = (params = {}) => http.post('/stb.order/editAddress', params)

// 删除地址 /api
export const apiDelAddress = (params = {}) => http.post('/stb.order/delAddress', params)